package com.chen.wow.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 
 * <p>Title:DemoEventListener</>
 * <p>Description:2.事件监听器</p>
 * @author chen
 * 2017年3月2日下午6:30:36
 */
@Component
public class DemoEventListener implements ApplicationListener<DemoEvent> {

	@Override
	public void onApplicationEvent(DemoEvent event) {
		String msg = event.getMsg();
		System.out.println("监听到来自:" + event + "的消息:" + msg);
	}

}
